package com.lwj.securitydemo.controller;

import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @GetMapping("/hello/{id}")
    @ApiOperation(value = "测试hello")
    public String hello(@PathVariable int id) {
        return "hello";
    }

}
